//
//  QLTestViewController.swift
//  WeiBo01
//
//  Created by 黄跃奇 on 16/9/21.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit

class QLTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.white
        
        addNavRightButton()
    }
    
    func addNavRightButton() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }
    
    //点击事件
    func pushAction() {
        let testVC = QLTestViewController()
        navigationController?.pushViewController(testVC, animated: true)
    }

}
